let baseUrl = '';
if (process.env.NODE_ENV == 'development') {
  baseUrl = "/api" 
} else {
  baseUrl = "" 
}
axios.defaults.baseURL = baseUrl;
export const all =()=>{
    return axios('/apis/product/activity/all')
}
//2、创建订单http://127.0.0.1:8888/apis/order/create/order
export const createOrder =(params)=>{
  return axios.post('/apis/order/create/order',{productId:params.productId,accept:params.accept,powerDay:params.powerDay,walleyAddress:params.walleyAddress})
}